package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户关联项目业务对象 sys_user_power
 *
 * @author zxs
 * @date 2024-10-10
 */

@Data
//@EqualsAndHashCode(callSuper = true)
public class SysUserPowerBo{

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 权限id(项目、标段、站点id)
     */
    @NotNull(message = "权限id(项目、标段、站点id)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long powerId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
